<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Config Fragments (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Config Fragments (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Config Fragments (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Configuration.html" rel="up" title="Configuration">
<link href="System-Config.html" rel="next" title="System Config">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
ul.mark-bullet {list-style-type: disc}
-->
</style>


</head>

<body lang="en">
<div class="subsubsection-level-extent" id="Config-Fragments">
<div class="nav-panel">
<p>
Next: <a href="System-Config.html" accesskey="n" rel="next">The <samp class="file">config.build</samp>; <samp class="file">config.host</samp>; and <samp class="file">config.gcc</samp> Files</a>, Up: <a href="Configuration.html" accesskey="u" rel="up">Configuration in the <samp class="file">gcc</samp> Directory</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Scripts-Used-by-configure"><span>6.3.2.1 Scripts Used by <samp class="file">configure</samp><a class="copiable-link" href="#Scripts-Used-by-configure"> &para;</a></span></h4>

<p><samp class="file">configure</samp> uses some other scripts to help in its work:
</p>
<ul class="itemize mark-bullet">
<li>The standard GNU <samp class="file">config.sub</samp> and <samp class="file">config.guess</samp>
files, kept in the top level directory, are used.

</li><li>The file <samp class="file">config.gcc</samp> is used to handle configuration
specific to the particular target machine.  The file
<samp class="file">config.build</samp> is used to handle configuration specific to the
particular build machine.  The file <samp class="file">config.host</samp> is used to handle
configuration specific to the particular host machine.  (In general,
these should only be used for features that cannot reasonably be tested in
Autoconf feature tests.)
See <a class="xref" href="System-Config.html">The <samp class="file">config.build</samp>; <samp class="file">config.host</samp>;
and <samp class="file">config.gcc</samp> Files</a>, for details of the contents of these files.

</li><li>Each language subdirectory has a file
<samp class="file"><var class="var">language</var>/config-lang.in</samp> that is used for
front-end-specific configuration.  See <a class="xref" href="Front-End-Config.html">The Front
End <samp class="file">config-lang.in</samp> File</a>, for details of this file.

</li><li>A helper script <samp class="file">configure.frag</samp> is used as part of
creating the output of <samp class="file">configure</samp>.
</li></ul>

</div>



</body>
</html>
